/**
 * ...
 * @author Thot
 */

	
	
function ApplicationFacade(){}
POO.extend( ApplicationFacade, Facade );


	// static
	
	ApplicationFacade._instance = null;

	ApplicationFacade.getInstance = function()
	{
		ApplicationFacade._instance = ApplicationFacade._instance || new ApplicationFacade();
		return ApplicationFacade._instance;
	};
	
	
	// public
	
	ApplicationFacade.prototype.init = function()
	{
		this._super.init.apply( this );
		
		this.registerCommand( ApplicationNotification.START_APP, StartApplicationCommand );
		this.registerCommand( ApplicationNotification.ADD_LAYER, AddLayerCommand);
		this.registerCommand( ApplicationNotification.REMOVE_LAYER, RemoveLayerCommand);
		this.registerCommand( ApplicationNotification.ADD_MAP, AddMapCommand);
		this.registerCommand( ApplicationNotification.REMOVE_MAP, RemoveMapCommand);
		this.registerCommand( ApplicationNotification.SELECT_MAP, SelectMapCommand);
		this.registerCommand( ApplicationNotification.ADD_ANIMATION, AddAnimationCommand );
		this.registerCommand( ApplicationNotification.LOAD_MAPS_DATA, LoadMapsCommand );
		this.registerCommand( ApplicationNotification.UNLOAD_PROJECT, UnloadProjectCommand );
		this.registerCommand( ApplicationNotification.LOAD_PROJECT, LoadProjectCommand );
		this.registerCommand( ApplicationNotification.SAVE_PROJECT, SaveProjectCommand );
	};
	
	